package edu.wpi.first.wpilibj.templates.subsystems;

/**
 * 
 * @author FRC Team 3255
 */

import edu.wpi.first.wpilibj.command.Subsystem;
import edu.wpi.first.wpilibj.Compressor;
import edu.wpi.first.wpilibj.DoubleSolenoid;
import edu.wpi.first.wpilibj.Relay;
import edu.wpi.first.wpilibj.Solenoid;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
import edu.wpi.first.wpilibj.templates.RobotMap;
import edu.wpi.first.wpilibj.templates.commands.*;

public class Pneumatics extends Subsystem {
    // Put methods for controlling this subsystem
    // here. Call these from Commands.
    
    private Compressor compressor;

    public Pneumatics(){
        compressor = new
        Compressor(RobotMap.PRESSURE_CHANNEL,RobotMap.COMPRESSOR_RELAY);       
    }
    
    public boolean isMaxPSI(){
        return compressor.getPressureSwitchValue();
    }

    public void runCompressor(){
        compressor.start();
    }
    
    public void stopCompressor(){
        compressor.stop();
    }
    
    protected void initDefaultCommand() {
        this.setDefaultCommand(new DoRunCompressor());
    }
}